
//
//  HYOptionalViewItemView.m
//  LEVE
//
//  Created by 上官惠阳 on 2017/3/2.
//  Copyright © 2017年 dashuju. All rights reserved.
//

#import "HYOptionalViewItemView.h"

@implementation HYOptionalViewItemView
// 滑动进度
- (void)setProgress:(CGFloat)progress {
    _progress = progress;

    [self setNeedsDisplay];
}

- (void)drawRect:(CGRect)rect {
    [super drawRect:rect];
    [_fillColor set];

    CGRect newRect = rect;
    newRect.size.width = rect.size.width * self.progress;
    UIRectFillUsingBlendMode(newRect, kCGBlendModeSourceIn);
}

@end
